class FactoryDeviceModel {
  String id;
  String name;
  bool check;
  int isedit;
  String brand;
  String deviceNum;
  String deviceYear;
  List imgList;
  FactoryDeviceModel(
      {this.id,
      this.name,
      this.brand,
      this.check,
      this.deviceNum,
      this.deviceYear,
      this.imgList,
      this.isedit});

  FactoryDeviceModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    brand=json['brand'];
    check = json['check'];
    isedit = json['isedit'];
    deviceNum=json['num'];
    deviceYear=json['year'];
    imgList=json['imgs'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['check'] = this.check;
    data['isedit'] = this.isedit;
    return data;
  }
}
